﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Udisk u1 = new Udisk("金士顿");
            u1.Hello();
            u1.Read();
            u1.Write();
            HDD h1 = new HDD("三星");
            h1.Hello();
            h1.Read();
            h1.Write();

            Computer c1 = new Computer("联想");
            c1.Start();
            c1.Usb1 = u1;
            c1.Usb2 = h1;
            c1.ReadDate();
            c1.WriteDate();
            c1.End();

            Console.ReadKey();
        }
    }
}